package com.erp.erp_servers.WjInfo.imp;

import com.erp.erp_dao.WjInfo.IWjInfoDAO;
import com.erp.erp_entitys.WjInfo.WjInfoEntity;
import com.erp.erp_entitys.WjInfo.WjInfoExample;
import com.erp.erp_entitys.WjInfo.WjInfoVoEntity;
import com.erp.erp_servers.WjInfo.IWjInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImpWjInfoService implements IWjInfoService {
    @Autowired
    IWjInfoDAO wjInfoDAO;
    @Override
    public long countByExample(WjInfoExample example) {
        return wjInfoDAO.countByExample(example);
    }

    @Override
    public int deleteByExample(WjInfoExample example) {
        return wjInfoDAO.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return wjInfoDAO.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(WjInfoEntity record) {
        return wjInfoDAO.insert(record);
    }

    @Override
    public int insertSelective(WjInfoEntity record) {
        return wjInfoDAO.insertSelective(record);
    }

    @Override
    public List<WjInfoEntity> selectByExample(WjInfoExample example) {
        return wjInfoDAO.selectByExample(example);
    }

    @Override
    public WjInfoEntity selectByPrimaryKey(Integer id) {
        return wjInfoDAO.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(WjInfoEntity record, WjInfoExample example) {
        return wjInfoDAO.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(WjInfoEntity record, WjInfoExample example) {
        return wjInfoDAO.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(WjInfoEntity record) {
        return wjInfoDAO.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(WjInfoEntity record) {
        return wjInfoDAO.updateByPrimaryKey(record);
    }

    @Override
    public List<WjInfoVoEntity> selectByName2(WjInfoEntity record) {
        return wjInfoDAO.selectByName2(record);
    }

    @Override
    public int distinctByName(WjInfoEntity record) {
        return wjInfoDAO.distinctByName(record);
    }

    @Override
    public int queryFileCount(String name) {
        return wjInfoDAO.queryFileCount(name);
    }
}
